package com.tedu.egspringbootmvc.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class UserArticleDTO {

    @NotNull
    @Size(min = 1,max = 20,message = "标题不能为空白，标题长度为1-20")
    private String title;
    @NotNull
    @Size(min = 10,max = 500,message = "内容不能为空白，长度为10-500")
    private String content;
}
